import 'package:chat_app_project/generated/json/base/json_field.dart';
import 'package:chat_app_project/generated/json/page_info_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class PageInfoEntity {
	late dynamic list;
	late bool next;
	late int page;
	late int pageSize;
	late int total;
	late int totalPage;

	PageInfoEntity();

	factory PageInfoEntity.fromJson(Map<String, dynamic> json) => $PageInfoEntityFromJson(json);

	Map<String, dynamic> toJson() => $PageInfoEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
